//
//  VCOfSecond.m
//  08--Homework  通讯录
//
//  Created by 冀永金 on 16/7/25.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "VCOfSecond.h"

@interface VCOfSecond ()

@end

@implementation VCOfSecond

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.translucent = NO;
    UILabel *nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 80, 40)];
    [self.view addSubview:nameLabel];
    nameLabel.text = @"姓名:";
    UILabel *name = [[UILabel alloc]initWithFrame:CGRectMake(100, 10, 100, 40)];
    [self.view addSubview:name];
   // name.backgroundColor = [UIColor redColor];
    name.text = self.name;
    UILabel *phoneNumLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 60, 80, 40)];
    [self.view addSubview:phoneNumLabel];
    phoneNumLabel.text = @"电话号码:";
    UILabel *phoneNum = [[UILabel alloc]initWithFrame:CGRectMake(100, 60, 140, 40)];
    [self.view addSubview:phoneNum];
   // phoneNum.backgroundColor = [UIColor yellowColor];
    phoneNum.text = self.phoneNum;
    UILabel *genderLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 110, 80, 40)];
    [self.view addSubview:genderLabel];
    genderLabel.text = @"性别:";
    UILabel *gender = [[UILabel alloc]initWithFrame:CGRectMake(100, 110, 80, 40)];
    [self.view addSubview:gender];
    //gender.backgroundColor = [UIColor blueColor];
    gender.text = self.gender;
    UILabel *ageLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 160, 80, 40)];
    [self.view addSubview:ageLabel];
    ageLabel.text = @"年龄";
    UILabel *age = [[UILabel alloc]initWithFrame:CGRectMake(100, 160, 80, 40)];
    [self.view addSubview:age];
    age.text = [NSString stringWithFormat:@"%@",self.age];
    
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
